This guide covers the creation of a Primary Sale with Sequence’s Unity SDK.
Demo.unity
scene located Sequence Embedded Wallet SDK/Sequence/Samples/DemoScene
.
In this scene, you’ll find the PrimarySalePage
object, which serves as a useful reference.
PrimarySalePage
object to input your sale information.
In the Configuration section, you’ll find the following options:
ERC1155Sale.cs
reference to obtain sale details and the payment token from the contract.
This information can be used, for instance, to locally verify if the user has sufficient balance for the specified payment token.
supply.tokenMetadata.image
variable from the token supplies mentioned above
to display your items to the user.
AssetHandler
class to handle image downloads from remote URLs.to
parameter,
the contract will mint the item to that user. You can use the ERC1155Sale.cs
class to create a CallContractFunction
reference, which allows you to send a transaction to your sales contract using the user’s wallet.